package com.eui.demo.demowizard.step
{
	import com.eui.demo.demowizard.DemoWizardPM;
	import com.eui.arch.util.PMContext;
	import com.eui.arch.wizard.model.StepPM;
	import com.eui.arch.wizard.model.WizardPM;
	
	import flash.utils.getQualifiedClassName;
	
	import mx.core.UIComponent;
	import mx.rpc.AsyncResponder;
	import mx.rpc.IResponder;
	import mx.rpc.events.FaultEvent;

	[Bindable]
	public class LastStepPM extends StepPM
	{
		public static const MANAGED_PM_ID:String = getQualifiedClassName(LastStepPM);

		public static function getInstance():LastStepPM
		{
			return PMContext.getInstance().getPM(MANAGED_PM_ID) as LastStepPM;
		}

		private var demoWizardPM:DemoWizardPM = DemoWizardPM.getInstance();
		public var name:String;

		public function LastStepPM()
		{
			name = demoWizardPM.name;
		}

		override public function pmId():String
		{
			return MANAGED_PM_ID;
		}

		override public function isDataChanged():Boolean
		{
			return false;
		}

		override public function validateUIData(responder:IResponder):void
		{
			responder.result(null);
		}

		override public function revertChange(responder:IResponder):void
		{
			responder.result(null);
		}

		override public function saveChange(responder:IResponder):void
		{
			responder.result(null);
		}
	}
}